export default [
  { path: '/index.html', redirect: '/ide_registry' },
  { path: '/', redirect: '/ide_registry' },
  {
    path: '/ide_registry',
    name: '镜像源',
    component: '@/pages/IdeRegistry',
  },
  { path: '/ide_image', name: '镜像', component: '@/pages/IdeImage' },
  {
    path: '/ide_enviroment',
    name: '资源配额',
    component: '@/pages/IdeEnvironment',
  },
  { path: '/ide', name: '开发环境', component: '@/pages/Ide' },
  { path: '/node', name: '节点管理', component: '@/pages/Node' },
  { 
    path: '/system', 
    name: '系统管理',
    routes: [
      { path: '/system/tenant', name: '租户管理', component: '@/pages/System/Tenant' },
      { path: '/system/role', name: '角色管理', component: '@/pages/System/Role' },
      { path: '/system/user', name: '用户管理', component: '@/pages/System/User' },
    ]
  },
  { component: '@/pages/404' },
]